<?php
$lang = Yii::app()->session['_lang'] ? : 'en';
?>
<session class="step_booking">
    <img src="<?= Yii::app()->theme->baseUrl ?>/images/step1_<?= $lang ?>.png">
    <article class="form-search">
        <div class="hotel-header">
            <h2><?php echo $model->fullName; ?></h2>
        </div>
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'booking',
            //            'enableAjaxValidation' => false,
            'enableClientValidation' => true,
            'method' => 'get',
            //'onSubmit' => 'return true',
            'action' => 'select-a-room.html',
            'htmlOptions' => array(
                'class' => 'form-horizontal',
                'onSubmit' => 'return true',
                'data-ajax' => 'false',
            ),
                ));
        ?>
        <div class="box">
            <label>Check in:</label> <input class="datepicker" type="text" id="checkin" data-ajax="false" readonly="readonly">
            <input type="hidden" id="check-in-date" name="fromDate">
        </div>
        <div class="box" style="margin-top:0;border-top:0">
            <label>Check out:</label> <input class="datepicker" type="text" id="checkout" data-ajax="false" readonly="readonly">
            <input type="hidden" id="check-out-date" name="toDate">
        </div>
        <div class="box">
            <label>Guest:</label>
            <select name="adult" id="adult" class="select-box">
                <option value="">Choose Guest</option>
                <option value="1">1 adult (1 room)</option>
                <option value="2">2 adults (1 room)</option>
                <option value="3">3 adults(1 room)</option>
            </select>
        </div>
        <div class="box">
            <label>Children:</label>
            <select name="child" id="children"class="select-box">
                <option value="0">Choose Children</option>
                <option value="0">0 child</option>
                <option value="1">1 child</option>
                <option value="2">2 children</option>
            </select>
        </div>
        <div class="box">
            <label>Extrabed:</label>
            <select id="extrabed" class="select-box" name="extrabed">
                <option value="0">Choose Extrabed</option>
                <option value="0">0</option>
                <option value="1">1</option>
                <option value="2">2</option>
            </select>
        </div>
        <div class="box btn">
            <input type="submit" value="Search Room" id="search" data-role="false" data-ajax="false">
        </div>
<?php $this->endWidget(); ?>
    </article>
</session>
